package com.firmboy.pattern.adapter;

/**
 * @author firmboy
 * @create 2018-06-19 下午3:50
 **/
public class AnnotationHandlerAdapter implements HandlerAdapter {
    @Override
    public boolean supports(Object handler) {
        return (handler instanceof AnnocationController);
    }

    @Override
    public void handle(Object handler) {
        ((AnnocationController)handler).doAnnotationHandler();
    }
}
